home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / autocomplete / nsIAutoCompleteController.h next >
Encoding:
C/C++ Source or Header  |  2006-05-08  |  11.2 KB  |  304 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIAutoCompleteController.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIAutoCompleteController_h__
  6. #define __gen_nsIAutoCompleteController_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIAutoCompleteInput; /* forward declaration */
  18.  
  19.  
  20. /* starting interface:    nsIAutoCompleteController */
  21. #define NS_IAUTOCOMPLETECONTROLLER_IID_STR "cf2aca0c-4fb1-42e4-8a54-23e832cb2a98"
  22.  
  23. #define NS_IAUTOCOMPLETECONTROLLER_IID \
  24.   {0xcf2aca0c, 0x4fb1, 0x42e4, \
  25.     { 0x8a, 0x54, 0x23, 0xe8, 0x32, 0xcb, 0x2a, 0x98 }}
  26.  
  27. class NS_NO_VTABLE nsIAutoCompleteController : public nsISupports {
  28.  public: 
  29.  
  30.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IAUTOCOMPLETECONTROLLER_IID)
  31.  
  32.   enum { STATUS_NONE = 1U };
  33.  
  34.   enum { STATUS_SEARCHING = 2U };
  35.  
  36.   enum { STATUS_COMPLETE_NO_MATCH = 3U };
  37.  
  38.   enum { STATUS_COMPLETE_MATCH = 4U };
  39.  
  40.   enum { KEY_UP = 1U };
  41.  
  42.   enum { KEY_DOWN = 2U };
  43.  
  44.   enum { KEY_LEFT = 3U };
  45.  
  46.   enum { KEY_RIGHT = 4U };
  47.  
  48.   enum { KEY_PAGE_UP = 5U };
  49.  
  50.   enum { KEY_PAGE_DOWN = 6U };
  51.  
  52.   enum { KEY_HOME = 7U };
  53.  
  54.   enum { KEY_END = 8U };
  55.  
  56.   /* attribute nsIAutoCompleteInput input; */
  57.   NS_IMETHOD GetInput(nsIAutoCompleteInput * *aInput) = 0;
  58.   NS_IMETHOD SetInput(nsIAutoCompleteInput * aInput) = 0;
  59.  
  60.   /* readonly attribute unsigned short searchStatus; */
  61.   NS_IMETHOD GetSearchStatus(PRUint16 *aSearchStatus) = 0;
  62.  
  63.   /* readonly attribute unsigned long matchCount; */
  64.   NS_IMETHOD GetMatchCount(PRUint32 *aMatchCount) = 0;
  65.  
  66.   /* void startSearch (in AString searchString); */
  67.   NS_IMETHOD StartSearch(const nsAString & searchString) = 0;
  68.  
  69.   /* void handleText (in boolean aIgnoreSelection); */
  70.   NS_IMETHOD HandleText(PRBool aIgnoreSelection) = 0;
  71.  
  72.   /* boolean handleEnter (); */
  73.   NS_IMETHOD HandleEnter(PRBool *_retval) = 0;
  74.  
  75.   /* boolean handleEscape (); */
  76.   NS_IMETHOD HandleEscape(PRBool *_retval) = 0;
  77.  
  78.   /* void handleStartComposition (); */
  79.   NS_IMETHOD HandleStartComposition(void) = 0;
  80.  
  81.   /* void handleEndComposition (); */
  82.   NS_IMETHOD HandleEndComposition(void) = 0;
  83.  
  84.   /* void handleTab (); */
  85.   NS_IMETHOD HandleTab(void) = 0;
  86.  
  87.   /* boolean handleKeyNavigation (in unsigned short key); */
  88.   NS_IMETHOD HandleKeyNavigation(PRUint16 key, PRBool *_retval) = 0;
  89.  
  90.   /* boolean handleDelete (); */
  91.   NS_IMETHOD HandleDelete(PRBool *_retval) = 0;
  92.  
  93.   /* AString getValueAt (in long index); */
  94.   NS_IMETHOD GetValueAt(PRInt32 index, nsAString & _retval) = 0;
  95.  
  96.   /* AString getCommentAt (in long index); */
  97.   NS_IMETHOD GetCommentAt(PRInt32 index, nsAString & _retval) = 0;
  98.  
  99.   /* AString getStyleAt (in long index); */
  100.   NS_IMETHOD GetStyleAt(PRInt32 index, nsAString & _retval) = 0;
  101.  
  102.   /* void setSearchString (in AString aSearchString); */
  103.   NS_IMETHOD SetSearchString(const nsAString & aSearchString) = 0;
  104.  
  105. };
  106.  
  107. /* Use this macro when declaring classes that implement this interface. */
  108. #define NS_DECL_NSIAUTOCOMPLETECONTROLLER \
  109.   NS_IMETHOD GetInput(nsIAutoCompleteInput * *aInput); \
  110.   NS_IMETHOD SetInput(nsIAutoCompleteInput * aInput); \
  111.   NS_IMETHOD GetSearchStatus(PRUint16 *aSearchStatus); \
  112.   NS_IMETHOD GetMatchCount(PRUint32 *aMatchCount); \
  113.   NS_IMETHOD StartSearch(const nsAString & searchString); \
  114.   NS_IMETHOD HandleText(PRBool aIgnoreSelection); \
  115.   NS_IMETHOD HandleEnter(PRBool *_retval); \
  116.   NS_IMETHOD HandleEscape(PRBool *_retval); \
  117.   NS_IMETHOD HandleStartComposition(void); \
  118.   NS_IMETHOD HandleEndComposition(void); \
  119.   NS_IMETHOD HandleTab(void); \
  120.   NS_IMETHOD HandleKeyNavigation(PRUint16 key, PRBool *_retval); \
  121.   NS_IMETHOD HandleDelete(PRBool *_retval); \
  122.   NS_IMETHOD GetValueAt(PRInt32 index, nsAString & _retval); \
  123.   NS_IMETHOD GetCommentAt(PRInt32 index, nsAString & _retval); \
  124.   NS_IMETHOD GetStyleAt(PRInt32 index, nsAString & _retval); \
  125.   NS_IMETHOD SetSearchString(const nsAString & aSearchString); 
  126.  
  127. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  128. #define NS_FORWARD_NSIAUTOCOMPLETECONTROLLER(_to) \
  129.   NS_IMETHOD GetInput(nsIAutoCompleteInput * *aInput) { return _to GetInput(aInput); } \
  130.   NS_IMETHOD SetInput(nsIAutoCompleteInput * aInput) { return _to SetInput(aInput); } \
  131.   NS_IMETHOD GetSearchStatus(PRUint16 *aSearchStatus) { return _to GetSearchStatus(aSearchStatus); } \
  132.   NS_IMETHOD GetMatchCount(PRUint32 *aMatchCount) { return _to GetMatchCount(aMatchCount); } \
  133.   NS_IMETHOD StartSearch(const nsAString & searchString) { return _to StartSearch(searchString); } \
  134.   NS_IMETHOD HandleText(PRBool aIgnoreSelection) { return _to HandleText(aIgnoreSelection); } \
  135.   NS_IMETHOD HandleEnter(PRBool *_retval) { return _to HandleEnter(_retval); } \
  136.   NS_IMETHOD HandleEscape(PRBool *_retval) { return _to HandleEscape(_retval); } \
  137.   NS_IMETHOD HandleStartComposition(void) { return _to HandleStartComposition(); } \
  138.   NS_IMETHOD HandleEndComposition(void) { return _to HandleEndComposition(); } \
  139.   NS_IMETHOD HandleTab(void) { return _to HandleTab(); } \
  140.   NS_IMETHOD HandleKeyNavigation(PRUint16 key, PRBool *_retval) { return _to HandleKeyNavigation(key, _retval); } \
  141.   NS_IMETHOD HandleDelete(PRBool *_retval) { return _to HandleDelete(_retval); } \
  142.   NS_IMETHOD GetValueAt(PRInt32 index, nsAString & _retval) { return _to GetValueAt(index, _retval); } \
  143.   NS_IMETHOD GetCommentAt(PRInt32 index, nsAString & _retval) { return _to GetCommentAt(index, _retval); } \
  144.   NS_IMETHOD GetStyleAt(PRInt32 index, nsAString & _retval) { return _to GetStyleAt(index, _retval); } \
  145.   NS_IMETHOD SetSearchString(const nsAString & aSearchString) { return _to SetSearchString(aSearchString); } 
  146.  
  147. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  148. #define NS_FORWARD_SAFE_NSIAUTOCOMPLETECONTROLLER(_to) \
  149.   NS_IMETHOD GetInput(nsIAutoCompleteInput * *aInput) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInput(aInput); } \
  150.   NS_IMETHOD SetInput(nsIAutoCompleteInput * aInput) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetInput(aInput); } \
  151.   NS_IMETHOD GetSearchStatus(PRUint16 *aSearchStatus) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSearchStatus(aSearchStatus); } \
  152.   NS_IMETHOD GetMatchCount(PRUint32 *aMatchCount) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMatchCount(aMatchCount); } \
  153.   NS_IMETHOD StartSearch(const nsAString & searchString) { return !_to ? NS_ERROR_NULL_POINTER : _to->StartSearch(searchString); } \
  154.   NS_IMETHOD HandleText(PRBool aIgnoreSelection) { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleText(aIgnoreSelection); } \
  155.   NS_IMETHOD HandleEnter(PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleEnter(_retval); } \
  156.   NS_IMETHOD HandleEscape(PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleEscape(_retval); } \
  157.   NS_IMETHOD HandleStartComposition(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleStartComposition(); } \
  158.   NS_IMETHOD HandleEndComposition(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleEndComposition(); } \
  159.   NS_IMETHOD HandleTab(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleTab(); } \
  160.   NS_IMETHOD HandleKeyNavigation(PRUint16 key, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleKeyNavigation(key, _retval); } \
  161.   NS_IMETHOD HandleDelete(PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleDelete(_retval); } \
  162.   NS_IMETHOD GetValueAt(PRInt32 index, nsAString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValueAt(index, _retval); } \
  163.   NS_IMETHOD GetCommentAt(PRInt32 index, nsAString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCommentAt(index, _retval); } \
  164.   NS_IMETHOD GetStyleAt(PRInt32 index, nsAString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStyleAt(index, _retval); } \
  165.   NS_IMETHOD SetSearchString(const nsAString & aSearchString) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSearchString(aSearchString); } 
  166.  
  167. #if 0
  168. /* Use the code below as a template for the implementation class for this interface. */
  169.  
  170. /* Header file */
  171. class nsAutoCompleteController : public nsIAutoCompleteController
  172. {
  173. public:
  174.   NS_DECL_ISUPPORTS
  175.   NS_DECL_NSIAUTOCOMPLETECONTROLLER
  176.  
  177.   nsAutoCompleteController();
  178.  
  179. private:
  180.   ~nsAutoCompleteController();
  181.  
  182. protected:
  183.   /* additional members */
  184. };
  185.  
  186. /* Implementation file */
  187. NS_IMPL_ISUPPORTS1(nsAutoCompleteController, nsIAutoCompleteController)
  188.  
  189. nsAutoCompleteController::nsAutoCompleteController()
  190. {
  191.   /* member initializers and constructor code */
  192. }
  193.  
  194. nsAutoCompleteController::~nsAutoCompleteController()
  195. {
  196.   /* destructor code */
  197. }
  198.  
  199. /* attribute nsIAutoCompleteInput input; */
  200. NS_IMETHODIMP nsAutoCompleteController::GetInput(nsIAutoCompleteInput * *aInput)
  201. {
  202.     return NS_ERROR_NOT_IMPLEMENTED;
  203. }
  204. NS_IMETHODIMP nsAutoCompleteController::SetInput(nsIAutoCompleteInput * aInput)
  205. {
  206.     return NS_ERROR_NOT_IMPLEMENTED;
  207. }
  208.  
  209. /* readonly attribute unsigned short searchStatus; */
  210. NS_IMETHODIMP nsAutoCompleteController::GetSearchStatus(PRUint16 *aSearchStatus)
  211. {
  212.     return NS_ERROR_NOT_IMPLEMENTED;
  213. }
  214.  
  215. /* readonly attribute unsigned long matchCount; */
  216. NS_IMETHODIMP nsAutoCompleteController::GetMatchCount(PRUint32 *aMatchCount)
  217. {
  218.     return NS_ERROR_NOT_IMPLEMENTED;
  219. }
  220.  
  221. /* void startSearch (in AString searchString); */
  222. NS_IMETHODIMP nsAutoCompleteController::StartSearch(const nsAString & searchString)
  223. {
  224.     return NS_ERROR_NOT_IMPLEMENTED;
  225. }
  226.  
  227. /* void handleText (in boolean aIgnoreSelection); */
  228. NS_IMETHODIMP nsAutoCompleteController::HandleText(PRBool aIgnoreSelection)
  229. {
  230.     return NS_ERROR_NOT_IMPLEMENTED;
  231. }
  232.  
  233. /* boolean handleEnter (); */
  234. NS_IMETHODIMP nsAutoCompleteController::HandleEnter(PRBool *_retval)
  235. {
  236.     return NS_ERROR_NOT_IMPLEMENTED;
  237. }
  238.  
  239. /* boolean handleEscape (); */
  240. NS_IMETHODIMP nsAutoCompleteController::HandleEscape(PRBool *_retval)
  241. {
  242.     return NS_ERROR_NOT_IMPLEMENTED;
  243. }
  244.  
  245. /* void handleStartComposition (); */
  246. NS_IMETHODIMP nsAutoCompleteController::HandleStartComposition()
  247. {
  248.     return NS_ERROR_NOT_IMPLEMENTED;
  249. }
  250.  
  251. /* void handleEndComposition (); */
  252. NS_IMETHODIMP nsAutoCompleteController::HandleEndComposition()
  253. {
  254.     return NS_ERROR_NOT_IMPLEMENTED;
  255. }
  256.  
  257. /* void handleTab (); */
  258. NS_IMETHODIMP nsAutoCompleteController::HandleTab()
  259. {
  260.     return NS_ERROR_NOT_IMPLEMENTED;
  261. }
  262.  
  263. /* boolean handleKeyNavigation (in unsigned short key); */
  264. NS_IMETHODIMP nsAutoCompleteController::HandleKeyNavigation(PRUint16 key, PRBool *_retval)
  265. {
  266.     return NS_ERROR_NOT_IMPLEMENTED;
  267. }
  268.  
  269. /* boolean handleDelete (); */
  270. NS_IMETHODIMP nsAutoCompleteController::HandleDelete(PRBool *_retval)
  271. {
  272.     return NS_ERROR_NOT_IMPLEMENTED;
  273. }
  274.  
  275. /* AString getValueAt (in long index); */
  276. NS_IMETHODIMP nsAutoCompleteController::GetValueAt(PRInt32 index, nsAString & _retval)
  277. {
  278.     return NS_ERROR_NOT_IMPLEMENTED;
  279. }
  280.  
  281. /* AString getCommentAt (in long index); */
  282. NS_IMETHODIMP nsAutoCompleteController::GetCommentAt(PRInt32 index, nsAString & _retval)
  283. {
  284.     return NS_ERROR_NOT_IMPLEMENTED;
  285. }
  286.  
  287. /* AString getStyleAt (in long index); */
  288. NS_IMETHODIMP nsAutoCompleteController::GetStyleAt(PRInt32 index, nsAString & _retval)
  289. {
  290.     return NS_ERROR_NOT_IMPLEMENTED;
  291. }
  292.  
  293. /* void setSearchString (in AString aSearchString); */
  294. NS_IMETHODIMP nsAutoCompleteController::SetSearchString(const nsAString & aSearchString)
  295. {
  296.     return NS_ERROR_NOT_IMPLEMENTED;
  297. }
  298.  
  299. /* End of implementation class template. */
  300. #endif
  301.  
  302.  
  303. #endif /* __gen_nsIAutoCompleteController_h__ */
  304.